<?php

/**
 * 前台首页控制器
 * @author:Cloud
 * @copyright:TcitCMS
 * @since:2014-05-12
 */

namespace Home\Controller;

class IndexController extends CommonController
{

    function _initialize()
    {
        parent::_initialize();
    }

    function index()
    {
        $model = new \Common\Model\NewsModel();
        $cateModel = new \Common\Model\CategoryModel();
        //友情链接
        $indexFlinkData = $model->where('`lm_id`=4 and `deleted`=0')->order('sort')->select();
        $this->assign('indexFlinkData', $indexFlinkData);
        $this->display();
    }

}

?>